<template>
  <div :class="{status: status}" class="middle-flex">
    <span>{{status ? '上架' : '下架'}}</span>
  </div>
</template>

<script>
export default {
  props: {
    status: {
      type: Number,
      default: 0
    }
  }
}
</script>

<style lang="less" scoped>
.middle-flex {
  justify-content: center;
  &::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #f5222d;
    border-radius: 50%;
    margin-right: 3px;
  }
  &.status::before {
    background: #1aad19;
  }
}
</style>
